import request from '@/utils/request'

// 查询教师上课列表
export function listCourseclassTeacher(query) {
  return request({
    url: '/score/CourseclassTeacher/list',
    method: 'get',
    params: query
  })
}

// 查询教师上课详细
export function getCourseclassTeacher(teacherId) {
  return request({
    url: '/score/CourseclassTeacher/' + teacherId,
    method: 'get'
  })
}

// 查询学生列表
export function getCourseclassTeacherAndStudent(courseclassId) {
  return request({
    url: '/score/CourseclassTeacher/student/' + courseclassId,
    method: 'get'
  })
}


// 新增教师上课
export function addCourseclassTeacher(data) {
  return request({
    url: '/score/CourseclassTeacher',
    method: 'post',
    data: data
  })
}

// 修改教师上课
export function updateCourseclassTeacher(data) {
  return request({
    url: '/score/CourseclassTeacher',
    method: 'put',
    data: data
  })
}

// 删除教师上课
export function delCourseclassTeacher(teacherId) {
  return request({
    url: '/score/CourseclassTeacher/' + teacherId,
    method: 'delete'
  })
}
